<template>
  <div class="Tabbar">
    <van-tabbar v-model="active" active-color="#FF6A6C" inactive-color="#888" route>
      <van-tabbar-item icon="home-o" to="/home">首页</van-tabbar-item>
      <van-tabbar-item icon="apps-o" to="/classification">分类</van-tabbar-item>
      <van-tabbar-item icon="shopping-cart-o" to="/shopping" 
        >购物车</van-tabbar-item
      >
      <van-tabbar-item  icon="contact" to="/my">个人</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
import { Tabbar, TabbarItem } from "vant";
export default {
  name: "Tabbar",
  data() {
    return {
      active:0,
    };
  },
  components: {
    [Tabbar.name]: Tabbar,
    [TabbarItem.name]: TabbarItem,
  },
};
</script>

<style lang="less" scoped>
</style>